package com.example.demo.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.demo.entity.Dish;
import com.example.demo.mapper.DishMapper;
import com.example.demo.service.DishService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DishServiceImpl extends ServiceImpl<DishMapper, Dish> implements DishService {

    @Override
    public List<Dish> getByRestaurantAndDepartment(Integer restaurantId, Integer departmentId) {
        return baseMapper.selectByRestaurantAndDepartment(restaurantId, departmentId);
    }
}


